<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>

     function   student  (name,age){
    this.name='小明'; 
    this.age=15;
student.prototype. show =function(){
    // student的原型show方法
console.log('学习');
}
}
  var  s1=new student ('小明',15)
//   创建对象
s1.show();
// s1调用show方法
  
</script>
</html>